package com.qd.common.panda.domain.entity.stroke.mystroke;

import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 停车
 *
 * @author sjk
 * @create 2022-09-26 11:31
 * @since 1.0.0
 */
@Data
@Accessors(chain = true)
@ToString
public class UserParkStrokeVO {
    /**
     * 1强预约（保留车位） 2普通预约
     */
    private Integer strongReservation;
    /**
     * 入场时间
     */
    private LocalDateTime intoTime;
    /**
     * 计费开始时间
     */
    private LocalDateTime billStartTime;
    /**
     * 计费结束时间
     */
    private LocalDateTime billEndTime;
    /**
     * 充电开始时间
     */
    private LocalDateTime chargeStartTime;
    /**
     * 充电结束时间
     */
    private LocalDateTime chargeEndTime;
    /**
     * 停车时长:单位是秒
     */
    private Long parkTime;
    /**
     * 停车时长显示
     */
    private String parkTimeDisplay;
    /**
     * 停车费总额
     */
    private BigDecimal amount;
    /**
     * 停车费总额显示
     */
    private String amountDisplay;

    /**
     * 新的订单,停车费总额
     */
    private BigDecimal newAmount;
    /**
     * 新的订单,停车费总额显示
     */
    private String newAmountDisplay;
    /**
     * 预约时间
     */
    private LocalDateTime appointmentTime;

    public void freeData() {
        this.parkTimeDisplay = null;
        this.intoTime = null;
        this.billStartTime = null;
        this.billEndTime = null;
        this.parkTime = null;
        this.amount = null;
        this.amountDisplay = null;
        this.newAmount = null;
        this.newAmountDisplay = null;
        this.appointmentTime = null;
    }
}